package com.st.order.FeignClient;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Feign   继承ribben 自动负载均衡
 * @author Hello
 */
@FeignClient("book-manager") //服务的名字  等于localhost:9001
public interface FeignService {
    @LoadBalanced
    @RequestMapping("/book/book/queryByIds")  //book-manager/book/book/queryByIds
    public Map getByIds(@RequestParam("isbn")String[] isbn);
}
